<a title="Close" class="boxy-close" href="javascript:void(0)" onclick="Boxy.get(this).hide();"></a>
<div class="wrap-edit-photo-folde" style="border-bottom: thin dashed black;">
    <form method='POST' action='<?php echo $this->baseUrl() ?>/service/add-folder/fid/<?php echo $this->folder->id ?>'>
        <span class='add-photo-label'>Folder Name: </span>
        <input type='text' name='name' value='<?php echo $this->folder->name ?>' style='padding: 7px 10px;'/>
        <input type='hidden' name="gi_id" value="<?php echo $this->folder->gi_id ?>"/>
        <input type='submit' value='Save' class='submit'/>
    </form>
</div>
<div class="wrap-folder-photos">
    <form method='POST' action='<?php echo $this->baseUrl() ?>/service/update-photos'>
        <input type="hidden" name="gi_id" value="<?php echo $this->folder->gi_id ?>"/>
        <?php foreach ($this->photos as $photo): ?>
            <div class="update-photo-item">
                <img alt="No image" style="max-width: 300px; max-height: 70px; padding:10px 0px;" src="<?php echo UPLOAD_URL . $photo['file'] ?>"/>
                <a href='javascript:void(0)' class='delete-file' onclick='deleteUploadFile(event, "<?php echo $photo['file'] ?>", <?php echo $photo['id'] ?>, "Photos")'>
                    <img src='<?php echo $this->baseUrl() ?>/public/images/delete.gif'>
                </a>
                <div style="display:block">
                    <input type="hidden" name="photo_ids[]" value="<?php echo $photo['id'] ?>"/>
                    <input type="text" name="photo_desc[]" value="<?php echo $photo['description'] ?>"/>
                </div>
            </div>
        <?php endforeach; ?>
        <div style="display:block; margin-top: 10px">
            <input type="submit" class="submit" value="Save"/>
        </div>
    </form>
</div>